const Http = require('./http');
const Api= require('./api');

class ActivityService {
  static getActivityStore(id) {
    return Http.request({
      url: Api.getActivityStore,
      data: {
              activity_store_id:id
            }
    });
  }

  static getProductInfo(id) {
    return Http.request({
      url: Api.getProductInfo,
      data: {
              product_id:id
            }
    });
  }

  static getMerchantInfo(id) {
    return Http.request({
      url: Api.getMerchantInfo,
      data: {
              mid:id
            }
    });
  }

  static fangweiVerify(qrcode_type,se,openid,mid,sn) {
    return Http.request({
      url: Api.fangweiVerify,
      data: {
              se:se,
              qrcode_type: qrcode_type,
              openid: openid,
              mid: mid,
              sn: sn
            }
    });
  }

}
module.exports = ActivityService;